local status_ok, catppuccin = pcall(require, "catppuccin")
if not status_ok then
    vim.notify("catppuccin not found")
    return
end

catppuccin.setup({
    flavour = "mocha", -- latte, frappe, macchiato, mocha
    show_end_of_buffer = false,
    transparent_background = false,
    term_colors = false,
    dim_inactive = {
        enabled = false,         -- dims the background color of inactive window
        shade = "dark",
        percentage = 0.15,       -- percentage of the shade to apply to the inactive window
    },
    no_italic = false,           -- Force no italic
    no_bold = false,             -- Force no bold
    no_underline = false,        -- Force no underline
    styles = {                   -- Handles the styles of general hi groups (see `:h highlight-args`):
        comments = { "italic" }, -- Change the style of comments
        conditionals = {},
        loops = {},
        functions = {},
        keywords = {},
        strings = {},
        variables = {},
        numbers = {},
        booleans = {},
        properties = {},
        types = {},
        operators = {},
    },
    integrations = {
        treesitter = true,
        lsp_trouble = true,
        lsp_saga = true,
        gitgutter = true,
        telescope = true,
        nvimtree = {
            enabled = true,
            show_root = true,
            transparent_panel = true,
        },
        neotree = {
            enabled = true,
            show_root = true,
            transparent_panel = false,
        },
        which_key = true,
        indent_blankline = {
            enabled = true,
            colored_indent_levels = true,
        },
        dashboard = true,
        neogit = false,
        vim_sneak = false,
        fern = false,
        barbar = false,
        bufferline = true,
        markdown = true,
        lightspeed = false,
        ts_rainbow = false,
        hop = true,
        notify = true,
        telekasten = true,
        symbols_outline = true,
    }
})

-- setup must be called before loading
vim.cmd.colorscheme "catppuccin"

